<?php

/* 
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
namespace Api\Controller;

use Zend\Mvc\Controller\AbstractActionController;
use Zend\View\Model\ViewModel;
use Zend\View\Model\JsonModel;

class IndexController extends AbstractActionController {

    public function indexAction() {
        return new JsonModel(array('data' => "Welcome to the Zend Framework Album API example"));
    }

    public function registerAction() {
        $view = new ViewModel();
        $view->setTemplate('users/index/new-user');
        return $view;
    }

    public function loginAction() {
        $view = new ViewModel();
        $view->setTemplate('users/index/login');
        return $view;
    }
    public function postAction()
    {
        echo "hello";
    }

}
